package com.spring1.lx3.diy;


import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Aspect //标注这个类是一个切面
public class AnnotationPointCut {
    @Before("execution(* com.spring1.lx3.service.UserSericeImpl.*(..))")
    public void before(){
        System.out.println("===方法执行前===");
    }

@After("execution(* com.spring1.lx3.service.UserSericeImpl.*(..))")
    public void after(){
        System.out.println("===方法执行后===");
    }
}
